import { createRouter, createWebHistory } from 'vue-router'
// import VueRouter from 'vue-router'



const routes = [
    {
        path: '/:pathMatch(.*)*',
        redirect: '/'
    }
]

// 创建路由对象
// const router = new VueRouter({})
const router = createRouter({
    mode: "hash",
    history: createWebHistory(process.env.BASE_URl),
    routes
})


// 导出路由对象
export default router;